package com.pointstar.dp.software;

/**
 * @author 朱科睿
 */
public class IOTest implements AutoCloseable {

    public static void main(String[] args) {
        try(IOTest ioTest = new IOTest()) {
            ioTest.print();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void close() throws Exception {
        System.out.println("自动关闭流");
    }

    public void print() {
        System.out.println("print");
    }

}
